package api.doctor;

import java.io.IOException;
import java.util.HashMap;

import common.Host;
import common.Request;
/**
 * 实现帮忙医医生端获取历史消息列表接口GetChatListByDoctorID接口调用
 * @author gaowen
 *
 */
public class GetChatListByDoctorID
{
	/**
	 * 实现帮忙医医生端获取历史消息列表接口GetChatListByDoctorID接口调用
	 * @param doctorID 医生ID
	 * @param day 天数
	 * @param token 调接口需要的token
	 * @return 接口返回值
	 * @throws IOException
	 */
	public static String get(String doctorID,String day,String token) throws IOException
	{
		String url=Host.getAddress()+"/api/IMmessage/GetChatListByDoctorID";
		
		HashMap<String, String> parms=new HashMap<>();
		parms.put("doctorID", doctorID);
		parms.put("day", day);
		
		String result=Request.get(url, parms, token);
		return result;
	}
}
